package org.sidora.strata.barsbuttons;

import java.awt.event.ActionEvent;
import org.openide.util.HelpCtx;
import org.openide.util.NbBundle;
import org.openide.util.actions.CallableSystemAction;
import org.sidora.strata.SidoraTools;
import org.sidora.strata.Storage;

/**
 * ShowCategory
 * @author Enric Tartera, Juan Manuel Gimeno, Roger Masgoret
 * @version 1.0
 */
public final class ShowCategory extends CallableSystemAction {
    
    public void performAction() {
        SidoraTools.showElement();
        Storage.getCategoryFormAction().actionPerformed(new ActionEvent(this,1,"Show category management"));
    }
    
    public String getName() {
        return NbBundle.getMessage(ShowCategory.class, "CTL_ShowCategory");
    }
    
    protected String iconResource() {
        return "org/sidora/resources/category32.png";
    }
    
    public HelpCtx getHelpCtx() {
        return HelpCtx.DEFAULT_HELP;
    }
    
    protected boolean asynchronous() {
        return false;
    }
    
}
